Carbon


MPCurrentTaskID

Header: Multiprocessing.h Carbon status: Supported

Obtains the task ID of the currently-executing preemptive task

MPTaskID MPCurrentTaskID ();
function result

The task ID of the current preemptive task.

DISCUSSION

Returns the ID of the current preemptive task. If called from a cooperative task, this function returns an ID which is different than the ID of any preemptive task. Nonpreemptive processes may or may not have different task IDs for each application; future implementations of this API may behave differently in this regard.

Note that you can call this function from an interrupt handler.

VERSION NOTES

Introduced with Multiprocessing Services 1.0.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.


© 2000 Apple Computer, Inc. (Last Updated 7/13/2000)